from main import CorrelationCircle
from config import Config
import schedule
import time

config = Config()
event = CorrelationCircle(config)
def init(event):
    config = Config()
    try:
        event = CorrelationCircle(config)
    finally:
        event = event
    return event

schedule.every(3).minutes.do(event.run)
schedule.every(7).days.do(init,event)
while True:
    schedule.run_pending()
    time.sleep(1)